#include <iostream>
#include <string.h>



int func(int x, int y)
{
    return x + y;
}

int func(int x, int y, int z)
{
    return x + y + z;
}

double func(double x, double y)
{
    return x + y;
}

float func(float x, float y)
{
    return x + y;
}

char *func(char *x, char *y)
{
    return strcat(x ,y);
}

int main()
{
    int a = 10;
    int b = 20;
    int c = 30;
    double f = 12.345;
    double g = 6.789;
    float d = 4.423f;
    float e = 3.233f;
    char str3[100] = "hello";
    char str4[100] = "world";


    std::cout << func(a, b) << std::endl;
    std::cout << func(a, b, c) << std::endl;
    std::cout << func(f, g) << std::endl;
    std::cout << func(d, e) << std::endl;
    std::cout << func(str3, str4) << std::endl;
    return 0;
}